package com.jerry.service;

import com.jerry.BO.FileChunkMeta;
import com.jerry.BO.MetaFile;
import com.jerry.DTO.FileMeta;
import com.jerry.VO.MetaFileVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;

public interface FileService {
    MetaFile getMeta(String bucketName, String filename);

    String upload(String bucketName, MultipartFile file,String nickName,String fileType) throws IOException;

    byte[] downloadChunk(FileChunkMeta chunk);

    MetaFileVO meta(FileMeta fileMeta);

    String uploadChunk(String bucketName, String filename, String md5, Integer chunkNo, MultipartFile file);

    void delete(String bucketName, String fileName);
}
